package com.han.model;

import java.io.Serializable;

/**
 * Created on 2019/3/29.
 * @author han
 * 返回结果实体类
 */
public class ResultInfo<T> implements Serializable {

    /** 成功标识 */
    private Boolean success;
    /** 返回信息 */
    private String massage;
    /** 返回数据 */
    private T data;

    public ResultInfo() {
        this.success = Boolean.TRUE;
    }

    public ResultInfo(Boolean success) {
        this.success = success;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
